//package com.yiwei.zhh.view;
//
//import android.content.Context;
//import android.graphics.drawable.ColorDrawable;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.widget.AdapterView;
//import android.widget.AdapterView.OnItemClickListener;
//import android.widget.ListView;
//import android.widget.PopupWindow;
//
//import com.yiwei.zhh.R;
//import com.yiwei.zhh.adapter.SpinerAdapterNew.IOnItemSelectListener;
//import com.yiwei.zhh.adapter.SpinerAdapterNew.OpinionType;
//import com.yiwei.zhh.adapter.SpinerAdapterNew;
//
//import java.util.List;
//
//public class SpinerPopWindow extends PopupWindow
//        implements OnItemClickListener {
//    private SpinerAdapterNew mAdapter;
//    private Context mContext;
//    private IOnItemSelectListener mItemSelectListener;
//    private ListView mListView;
//
//    public SpinerPopWindow(Context paramContext) {
//        super(paramContext);
//        this.mContext = paramContext;
//        init();
//    }
//
//    private void init() {
//        View localView = LayoutInflater.from(this.mContext).inflate(R.layout.spiner_window_layout, null);
//        setContentView(localView);
//      /* setWidth(ViewGroup.LayoutParams.WRAP_CONTENT);
//        setHeight(ViewGroup.LayoutParams.WRAP_CONTENT);*/
//       setWidth(-2);
//        setHeight(-2);
//        setFocusable(true);
//        setBackgroundDrawable(new ColorDrawable(0));
//        this.mListView = ((ListView) localView.findViewById(R.id.listview));
//        this.mListView.setOnItemClickListener(this);
//    }
//
//    public void onItemClick(AdapterView<?> paramAdapterView, View paramView, int paramInt, long paramLong) {
//        dismiss();
//        if (this.mItemSelectListener != null)
//            this.mItemSelectListener.onItemClick(paramInt);
//    }
//
//    public void refreshData(List<OpinionType> paramList, int paramInt) {
//        if ((paramList != null) && (paramInt != -1) && (this.mAdapter != null))
//            this.mAdapter.refreshData(paramList, paramInt);
//    }
//
//    public void setAdatper(SpinerAdapterNew paramSpinerAdapter) {
//        this.mAdapter = paramSpinerAdapter;
//        this.mListView.setAdapter(this.mAdapter);
//    }
//
//    public void setItemListener(IOnItemSelectListener paramIOnItemSelectListener) {
//        this.mItemSelectListener = paramIOnItemSelectListener;
//    }
//}
